﻿<Window x:Class="WPFPhysics1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPFPhysicsPlus" Width="800" Height="600"
		xmlns:system="clr-namespace:System;assembly=mscorlib"
		xmlns:local="clr-namespace:WPFPhysics1"
        Icon="Icon.jpg"
    Name="window">

	<Window.Resources>

		<ObjectDataProvider x:Key="bodies" ObjectType="{x:Type local:Bodies}">
			<ObjectDataProvider.ConstructorParameters>
				<system:Double>20</system:Double>
				<system:Double>8</system:Double>
			</ObjectDataProvider.ConstructorParameters>
		</ObjectDataProvider>

	</Window.Resources>

	<Grid MouseWheel="myWindowWheelHandler" MouseMove="myWindowMouseMoveHandler" MouseUp="myWindowMouseUpHandler" MouseDown="myWindowMouseDownHandler">
		<local:World DataContext="{Binding Source={StaticResource bodies}}"/>
		<Canvas >
            <Expander  ExpandDirection="Down" Header="Drop Objects" Canvas.Top="20" Canvas.Right="50" Background="Red" Foreground="White" BorderBrush="White">
                <DockPanel>
                    <Slider Name="objectcountslider" Maximum="10" Minimum="1" TickPlacement="TopLeft" Ticks="2, 3, 4, 5, 6, 7, 8, 9" Visibility="Hidden" IsEnabled="False" DockPanel.Dock="Left" Orientation="Vertical" Background="Red"></Slider>
    				<Button DockPanel.Dock="Top" Name="rectangle" Click="Drop_Click" MouseEnter="Drop_MouseEnter" MouseWheel="Drop_MouseWheel" MouseLeave="Drop_MouseLeave" ToolTip="Try Scroll Button">Rectangle</Button>
	    			<Button DockPanel.Dock="Top" Name="ellipse" Click="Drop_Click" MouseEnter="Drop_MouseEnter" MouseWheel="Drop_MouseWheel" MouseLeave="Drop_MouseLeave" ToolTip="Try Scroll Button">Ellipse</Button>
		    		<Button DockPanel.Dock="Top" Name="polygon" Click="Drop_Click" MouseEnter="Drop_MouseEnter" MouseWheel="Drop_MouseWheel" MouseLeave="Drop_MouseLeave" ToolTip="Try Scroll Button">Polygon</Button>
			    	<Button DockPanel.Dock="Top" Name="car" Click="Drop_Click"  MouseEnter="Drop_MouseEnter" MouseWheel="Drop_MouseWheel" MouseLeave="Drop_MouseLeave" ToolTip="Try Scroll Button">Car</Button>
			    	<Button DockPanel.Dock="Top" Name="platforms" Click="Drop_Click">New Platforms</Button>
                </DockPanel>
            </Expander>
        </Canvas>
        <Grid.Background>
            <ImageBrush ImageSource="SteelBrush.jpg"/>
        </Grid.Background>
    </Grid>

</Window>